package cn.com.flower.passport.service;

import cn.com.flower.common.pojo.authentication.CurrentPrincipal;
import cn.com.flower.passport.pojo.param.UserLoginInfoParam;
import cn.com.flower.passport.pojo.vo.UserLoginInfoVO;
import cn.com.flower.passport.pojo.vo.UserLoginResultVO;

public interface IUserService {
    /**
     * 用户登录
     * @param userLoginInfoParam
     * @return
     */
    UserLoginResultVO login(UserLoginInfoParam userLoginInfoParam, String remoteAddr, String userAgent);

    /**
     * 用户退出
     */
    void logout(CurrentPrincipal currentPrincipal);
}
